package com.yt.Insurance.models.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@ApiModel("保险投保信息")
public class InsurancePolicyDTO {

    @ApiModelProperty(value = "被保险人ID", example = "1")
    @NotNull(message = "被保险人ID不能为空")
    private Long userId;

    @ApiModelProperty(value = "产品ID", example = "1")
    @NotNull(message = "产品ID不能为空")
    private Integer productId;

    @ApiModelProperty(value = "受益人姓名")
    @NotBlank(message = "受益人姓名不能为空")
    private String beneficiaryName;

    @ApiModelProperty(value = "受益人身份证")
    @NotBlank(message = "受益人身份证不能为空")
    private String beneficiaryIdcard;

    @ApiModelProperty(value = "与被保险人关系")
    @NotBlank(message = "与被保险人关系不能为空")
    private String beneficiaryRelation;

    @ApiModelProperty(value = "保险金额")
    @NotNull(message = "保险金额不能为空")
    private BigDecimal insuranceAmount;

    @ApiModelProperty(value = "保险期限(月)")
    @NotNull(message = "保险期限不能为空")
    private Integer insuranceTerm;

    @ApiModelProperty(value = "是否有病史 0-无 1-有")
    @NotNull(message = "病史选项不能为空")
    private Byte hasMedicalHistory;

    @ApiModelProperty(value = "病史描述")
    private String medicalHistoryDesc;
}